MongoDB and PHP by Francia Steve
Author:Francia, Steve [Steve Francia]
Language: eng
Format: epub
Tags: COMPUTERS / Database Management / General
ISBN: 9781449324841
Publisher: O'Reilly Media, Inc.
Published: 2012-01-22T16:00:00+00:00
MongoDB permits you to run updates and deletions on multiple documents at the same time.
Updating Multiple Records
By default the update (or save) methods only work on a single document. Both have an additional parameter that accepts an array of options. To update all documents that match the criteria provided, simply pass in array("multiple" => true) in the third parameter.
Note
Multiple updates are individually atomic, but not atomic as a group. MongoDB doesn’t have the ability to have atomicity across the update set, but each individual document will be updated atomically.
A Multiple update is also nonblocking, meaning that other updates can happen while the update is occurring, even on the same data. The way to prevent this is to provide the $atomic option, which confusingly isn’t atomic, but isolated. When set to true, the multi update (or delete) will be blocking, ensuring that no other operations happen during this operation on that data set.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8309)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6817)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6793)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6679)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6466)
Driving Data Quality with Data Contracts by Andrew Jones(6412)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6168)
Learning SQL by Alan Beaulieu(6005)
Weapons of Math Destruction by Cathy O'Neil(5798)
Big Data Analysis with Python by Ivan Marin(5401)
Data Engineering with dbt by Roberto Zagni(4408)
Solidity Programming Essentials by Ritesh Modi(4055)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3916)
Pandas Cookbook by Theodore Petrou(3619)
Blockchain Basics by Daniel Drescher(3307)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2914)
Feature Store for Machine Learning by Jayanth Kumar M J(2821)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2803)
Mastering Python for Finance by Unknown(2748)
